package ui.model;

import java.util.Comparator;

import Bean.FindAddressBean;
import util.LogUtils;

public class SortClass implements Comparator {
    public int compare(Object arg0, Object arg1) {
        int flag = 0;
        try {
            FindAddressBean.DataBean.ItemsBean user0 = (FindAddressBean.DataBean.ItemsBean) arg0;
            FindAddressBean.DataBean.ItemsBean user1 = (FindAddressBean.DataBean.ItemsBean) arg1;
            if (user0.getGmtCreate() > user1.getGmtCreate()) {
                flag = -1;
            } else {
                flag = 1;
            }
            LogUtils.d("-----------" + flag);
        } catch (Exception e) {
        }
        return flag;
    }
}
